package sessionBeans;

import java.util.List;
import javax.ejb.Remote;
import entityBeans.User;

/**
 *
 * @author user
 */
@Remote

public interface AuthenticationFacadeLocal {

/**
	 * Interrogates the database to verify if the email and password are correct
	 * @param E_mail Email of an user
	 * @param password Password of an User
	 * @return this method will return 1 if the E_mail and password are correct, return -1 if the E_mail is not present in the database or the password is incorrect
	 */
	public int loginFlag(String email, String password); 


   void login(entityBeans.User user);

   void forgetPassword(entityBeans.User user);

	
}
